package com.day18.Copy;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;

public class CopyJavaDemo02 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new java.io.FileReader("myJava\\CopyJava.java"));
        BufferedWriter bw=new BufferedWriter(new java.io.FileWriter("myJava\\CopyJava02.java"));
        String Line;
        while((Line=br.readLine())!=null){
            bw.write(Line);
            bw.newLine();
            bw.flush();
        }
        bw.close();
        br.close();
    }
}
